package com.jinchengll.xigua.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 分页信息封装
 *
 * @author jinchengll
 * @since 2021/10/3
 */
public class Page<T> {
    // 总数
    @SerializedName("total")
    private Integer total;
    @SerializedName("size")
    private Integer size;
    @SerializedName("current")
    private Integer current;
    @SerializedName("pages")
    private Integer pages;
    @SerializedName("records")
    private List<T> records;
//    @SerializedName("orders")
//    private List<?> orders;
//    @SerializedName("optimizeCountSql")
//    private Boolean optimizeCountSql;
//    @SerializedName("hitCount")
//    private Boolean hitCount;
//    @SerializedName("searchCount")
//    private Boolean searchCount;


    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }
}
